//
//  HRDynamicModel.h
//  Hear
//
//  Created by mac on 2017/3/26.
//  Copyright © 2017年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HRBaseRequstDataModel.h"
#import "MTMusicFeature.h"
/// 图片标记
typedef NS_ENUM(NSUInteger, WBPictureBadgeType) {
    WBPictureBadgeTypeNone = 0, ///< 正常图片
    WBPictureBadgeTypeLong,     ///< 长图
    WBPictureBadgeTypeGIF,      ///< GIF
};

/**
一个图片的元数据
*/
@interface WBPictureMetadata : NSObject
@property (nonatomic, strong) NSURL *url; ///< Full image url
@property (nonatomic, assign) int width; ///< pixel width
@property (nonatomic, assign) int height; ///< pixel height
@property (nonatomic, strong) NSString *type; ///< "WEBP" "JPEG" "GIF"
@property (nonatomic, assign) int cutType; ///< Default:1
@property (nonatomic, assign) WBPictureBadgeType badgeType;
@end


@interface HRDynamicModel : NSObject
@property (nonatomic , copy) NSString              * PositionName;
@property (nonatomic , copy) NSString              * LocalId;
@property (nonatomic , copy) NSString              * UserPictureBackgroundColor;
@property (nonatomic , copy) NSString              * PositionCoordinate;
@property (nonatomic , copy) NSString              * UserPictureName;
@property (nonatomic , copy) NSString              * UserLocalId;
@property (nonatomic , copy) NSString              * MomentDetai;
@property (nonatomic , copy) NSString              * NickName;
@property (nonatomic , copy) NSString              * MomentType;
@property (nonatomic , assign) NSInteger              Permission;
@property (nonatomic , copy) NSString              * CreateTime;
@property (nonatomic , assign) NSInteger              LikeCount;
@property (nonatomic , copy) NSString              * MomentNotes;
@property (nonatomic , assign) NSInteger              CommentCount;

@property (nonatomic, strong)NSArray *pics;
@property (nonatomic, copy)NSString *SoundLength;
@property (nonatomic, copy)NSString *IsLike;
@property (nonatomic , copy) NSString              *MomentLength;
@property (nonatomic, assign)BOOL isPlaying;
@property (nonatomic, copy)NSString *IsOfficial;

@property (nonatomic, strong)NSArray *commentList;

@property (nonatomic, strong)NSArray *comentListArray;
@property (nonatomic, copy)NSString *VideoCover;
@property(nonatomic, copy)NSString *MomentTagName;

@property(nonatomic, copy)NSString *MomentTagCode;
@property(nonatomic, copy)NSString *PhotoUrl;

@property(nonatomic, copy)NSString *SoundUrl;
@property(nonatomic, strong)HRDynamicModel *soundAndImageConentModel;


@property(nonatomic, copy)NSString *UserRemark;
@property(nonatomic, strong)MTMusicFeature *musicFeature;

@property(nonatomic, copy)NSString *IsRecommend; // 0 普通帖子  1 推荐帖子

@property(nonatomic, copy)NSString *ListMediaUrl;
@property(nonatomic, copy)NSString *MediaType;
@property(nonatomic, copy)NSString *Commission;
@property(nonatomic, strong)HRDynamicModel *MomentDetaiModel;

@property(nonatomic, assign)BOOL isFromHistoryAnswer;

@property(nonatomic, copy)NSString *QuestionID;
@property(nonatomic, copy)NSString *QuestionText;
@property(nonatomic, copy)NSString *ParentQuestionText;
@property(nonatomic, copy)NSString *ParentQuestionID;


@end
@interface HRDynamicRequestModel:HRBaseRequstDataModel
@property (nonatomic, copy)NSString *UserLocalId;
@property (nonatomic, copy)NSString *CurrentUserLocalId;
@property (nonatomic, assign)NSInteger PageSize;
@property (nonatomic, assign)NSInteger PageIndex;


@end

@interface HRPostDynamicRequestModel:HRBaseRequstDataModel

@property (nonatomic , copy) NSString              * MomentType;
@property (nonatomic , copy) NSString              * MomentDetai;
@property (nonatomic , copy) NSString              * UserLocalId;
@property (nonatomic , copy) NSString              * MomentNotes;
@property (nonatomic , copy) NSString              * PositionName;
@property (nonatomic , assign) NSInteger              Permission;
@property (nonatomic , copy) NSString              * Longitude;
@property (nonatomic , copy) NSString              * Latitude;


@property (nonatomic , copy) NSString              * LocalId;
@property (nonatomic , copy) NSString              * CreateTime;

@property (nonatomic , copy) NSString              *MomentLength;
@property (nonatomic, copy)NSString *VideoCover;
@property(nonatomic, copy)NSString *MomentTagCode;
@property(nonatomic, copy)NSString *MomentTagName;


@end


@interface HRPicture : NSObject
@property (nonatomic, strong) NSString *picID;
@property (nonatomic, strong) NSString *objectID;
@property (nonatomic, assign) int photoTag;
@property (nonatomic, assign) BOOL keepSize; ///< YES:固定为方形 NO:原始宽高比
@property (nonatomic, strong) WBPictureMetadata *thumbnail;  ///< w:180
@property (nonatomic, strong) WBPictureMetadata *bmiddle;    ///< w:360 (列表中的缩略图)
@property (nonatomic, strong) WBPictureMetadata *middlePlus; ///< w:480
@property (nonatomic, strong) WBPictureMetadata *large;      ///< w:720 (放大查看)
@property (nonatomic, strong) WBPictureMetadata *largest;    ///<       (查看原图)
@property (nonatomic, strong) WBPictureMetadata *original;   ///<
@property (nonatomic, assign) WBPictureBadgeType badgeType;

@end
